package tk.jfree.example.excel;

import tk.jfree.example.excel.model.Log;
import tk.jfree.summer.excel.ExcelHelper;

import java.io.InputStream;

/**
 * @author Cheng.Wei
 * @date 2019/05/05 12:26
 */
public class ExcelTest {
    public static void main(String[] args) throws Exception{

        InputStream inputStream = Thread.currentThread().getContextClassLoader().getResourceAsStream("log.xlsx");
        long start = System.currentTimeMillis();
        int size = ExcelHelper.builder(Log.class).read(inputStream).getData().size();
        long end = System.currentTimeMillis();
        System.out.println("数量:"+ size+"  时间：" +(end-start));
        inputStream.close();
    }
}
